{% load i18n %}

{% spaceless %}
<div id="openid-panel">
	{% if not isAuthenticated %}
		<a href="http://openid.net/" id="openid-link">
			<img src="{{ MEDIA_URL }}img/openid-logo-wordmark.png" class="openid-logo">
		</a>
		<div id="openid-authentication-panel">
			<form name="openidform" action="{% url djangoopenid.views.begin %}" method="post">
				<img src="{{ MEDIA_URL }}img/help.gif" class="help" style="vertical-align: middle; padding-left: 15px;"
				title="{% trans 'OpenID: Safe, fast and cool login system.' %}">
				<input type="text" id="openidurl" name="openidurl" 
					maxlength="255" 
					value="{% trans 'Your OpenID URL' %}" 
					onfocus="if(this.value=='{% trans 'Your OpenID URL' %}'){this.value='';};"
					style="background: #fff url('{{ MEDIA_URL }}img/openid-logo-input.gif') 1px center no-repeat;"/> 
				<input type="submit" value="&raquo;" id="openidsubmit"/>
			</form>
			{% if openidMessage %}
				<span>{{ openidMessage }}</span>
			{% endif %}
		</div>
	{% else %}
		<div id="openid-user-panel">
			<a href="{{ openiduser }}" target="_blank" id="openid-user">{{ openiduser }}</a>
			<a href="{% url djangoopenid.views.logout %}" id="logout">Logout</a>
		</div>
	{% endif %}
</div>
{% endspaceless %}